<template>
  <div class="busin">
    <!-- 顶部 -->
    <div class="busin1">
      <div @click="goToN">&lt;</div>
      <div>商务合作</div>
    </div>
    <!-- 中间 -->
    <div class="busin-contet">
      <div class="busin-left">
        <span>商务合作</span>
      </div>
      <p class="busin-right">谢谢参与，谢谢你的合作</p>
    </div>
    <!-- 底部 -->
    <div class="busin-footer">
      <van-form @submit="onSubmit">
        <van-field
          v-model="username"
          name="用户名"
          label="用户名"
          placeholder="用户名"
          :rules="[{ required: true, message: '请填写用户名' }]"
        />
        <van-field
          v-model="password"
          type="password"
          name="密码"
          label="密码"
          placeholder="密码"
          :rules="[{ required: true, message: '请填写密码' }]"
        />
        <div style="margin: 16px">
          <van-button round block type="info" native-type="submit"
            >提交</van-button
          >
        </div>
      </van-form>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      username: "",
      password: "",
    };
  },
  methods: {
    goToN() {
      this.$router.go(-1);
    },
    onSubmit(values) {
      console.log("submit", values);
    },
  },
};
</script>

<style  scoped>
.busin1 {
  width: 100vw;
  display: flex;
  height: 40px;
  color: #fff;
  background: deepskyblue;
}
.busin1 div:nth-child(1) {
  line-height: 40px;
  font-size: 30px;
  margin-left: 20px;
}
.busin1 div:nth-child(2) {
  line-height: 40px;
  margin-left: 100px;
  font-size: 20px;
}
.busin-left {
  height: 30px;
  line-height: 30px;
  border-bottom: 1px solid #ccc;
}
.busin-left span {
  margin-left: 20px;
}
.busin-right {
  height: 30px;
  line-height: 30px;
  color: #ccc;
  margin-left: 20px;
}
.busin-footer {
  width: 100vw;
  /* height: 40vh; */
  background: dodgerblue;
}
</style>
